<?php
	class Pers {
       public $nom = "";
       public $prenom  = "";
   }
   $p = new Pers();
   $p->nom = "TOTO";
   $p->prenom  = "titi";

   echo json_encode($p);
?>
